{% extends "base.html" %}

{% block content %}

<h2>{% block title %}Checkout 1/2{% endblock %}</h2>

<div class="order-display">
    {% include "order_details.html" %}
    {% with user.get_profile.shipping_address as shipping_address %}
        {% with user.get_profile.phonenumber as phonenumber %}
            {% include "order_shipping.html" %}
        {% endwith %}
    {% endwith %}

    <ul class="actions">
        <li>
            <form method="post" action="{% url shop.views.checkout.create_order %}">
                {% csrf_token %}
                <div><button type="submit">Confirm Order</button></div>
            </form>
        </li>
        <li>
            <form method="get" action="{% url shop.views.cart.show %}">
                <div><button type="submit">Return to Shopping Cart</button></div>
            </form>
        </li>
    </ul>
</div>

{% endblock %}
